<!-- #menu -->
	<ul id="menu" class="collapse">
		<li class="nav-header">Menu</li>
		<li class="nav-divider"></li>

		<?php foreach ($menus as $menu){
			echo '<li class="panel ">';
			if(count($menu['sub_menu'])){ ?>
			<a href="#" data-parent="#menu" data-toggle="collapse" class="accordion-toggle" data-target="#<?php echo $menu['id_menu'];?>">
				<i class="icon-dashboard"></i> <?php echo $menu['nama_menu']; ?>
				<span class="pull-right"><i class="icon-angle-left"></i></span>
			</a>
			<ul class="collapse" id="<?php echo $menu['id_menu']; ?>">
				<?php foreach ($menu['sub_menu'] as $submenu){?>
				<li class=""><a href="#"><i class="icon-angle-right"></i> <?php echo $submenu['nama_menu']; ?></a></li>
				<?php } ?>
			</ul>
			</li>
		<?php } else { ?>
    		<li><a href="table.html"><i class="icon-table"></i> <?php echo $menu['nama_menu']; ?></a></li>
		<?php }} ?>
	</ul>
<!-- /#menu -->